/*
 * ioGame
 * Copyright (C) 2021 - 2023  渔民小镇 （262610965@qq.com、luoyizhu@gmail.com） . All Rights Reserved.
 * # iohao.com . 渔民小镇
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 */
package com.mygame.common.protobuf;

import com.baidu.bjf.remoting.protobuf.FieldType;
import com.baidu.bjf.remoting.protobuf.annotation.Protobuf;
import com.baidu.bjf.remoting.protobuf.annotation.ProtobufClass;
import com.mygame.common.protobuf.ProtoFileMerge;

/**
 * 游戏对外服协议
 */
@ProtobufClass
@ProtoFileMerge(fileName = "ExternalMessage.proto", filePackage = "com.iohao.message")
public class ExternalMessage {

    @Protobuf(fieldType = FieldType.INT32, order = 1)
    int messageType;
    @Protobuf(fieldType = FieldType.INT32, order = 2)
    int messageId;
    @Protobuf(fieldType = FieldType.INT32, order = 3)
    int serviceId;
    @Protobuf(fieldType = FieldType.INT64, order = 4)
    long clientSendTime;
    @Protobuf(fieldType = FieldType.INT64, order = 5)
    long serverSendTime;
    @Protobuf(fieldType = FieldType.INT32, order = 6)
    int clientSeqId;
    @Protobuf(fieldType = FieldType.INT32, order = 7)
    int errorCode;
    @Protobuf(fieldType = FieldType.INT32, order = 8)
    int fromServerId;
    @Protobuf(fieldType = FieldType.INT32, order = 9)
    int toServerId;
    @Protobuf(fieldType = FieldType.INT64, order = 10)
    long playerId;
    @Protobuf(fieldType = FieldType.BYTES, order = 11)
    byte[] data;

    public int getMessageType() {
        return messageType;
    }

    public void setMessageType(int messageType) {
        this.messageType = messageType;
    }

    public int getMessageId() {
        return messageId;
    }

    public void setMessageId(int messageId) {
        this.messageId = messageId;
    }

    public int getServiceId() {
        return serviceId;
    }

    public void setServiceId(int serviceId) {
        this.serviceId = serviceId;
    }

    public long getClientSendTime() {
        return clientSendTime;
    }

    public void setClientSendTime(long clientSendTime) {
        this.clientSendTime = clientSendTime;
    }

    public long getServerSendTime() {
        return serverSendTime;
    }

    public void setServerSendTime(long serverSendTime) {
        this.serverSendTime = serverSendTime;
    }

    public void setServerSendTime(int serverSendTime) {
        this.serverSendTime = serverSendTime;
    }

    public int getClientSeqId() {
        return clientSeqId;
    }

    public void setClientSeqId(int clientSeqId) {
        this.clientSeqId = clientSeqId;
    }

    public int getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(int errorCode) {
        this.errorCode = errorCode;
    }

    public int getFromServerId() {
        return fromServerId;
    }

    public void setFromServerId(int fromServerId) {
        this.fromServerId = fromServerId;
    }

    public int getToServerId() {
        return toServerId;
    }

    public void setToServerId(int toServerId) {
        this.toServerId = toServerId;
    }

    public long getPlayerId() {
        return playerId;
    }

    public void setPlayerId(long playerId) {
        this.playerId = playerId;
    }

    public byte[] getData() {
        return data;
    }

    public void setData(byte[] data) {
        this.data = data;
    }
}
